<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p id="fun"></p>

<script>

    /*function num(a,b) {
        var sun = a * b;
        return sun;
    }*/

    //document.querySelector("#fun").innerHTML = num(10,29);



   /* function asd(n1,n2,n3,n4) {
        console.log(n2);
        console.log(n3);
        console.log(arguments);//数组
        console.log(arguments[3]);
        console.log(arguments.length);
    }
    asd(3,5,67,8);*/
    
    
    
    function jc(n) {
        if(n === 1){
            return 1;
        }else{
            return n * jc(n - 1);
        }
    }
    console.log(jc(5));







</script>
</body>
</html>
